package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.sql.Time;

/**
 * @author lvfengjun
 * @title: DeviceCurfewTimeCmd
 * @description:
 * @date 2023/10/20 16:43
 */
@Getter
@Setter
@ToString
public class DeviceCurfewTimeCmd {

	@ApiModelProperty(value="设备id")
	@NotNull(message = "设备id不能为空")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Long deviceId;

	@ApiModelProperty("开始时间")
	@JsonFormat(pattern = "HH:mm:ss")
	@NotNull(message = "有效时间不能为空")
	private Time startTime;

	@ApiModelProperty("结束时间")
	@JsonFormat(pattern = "HH:mm:ss")
	@NotNull(message = "有效时间不能为空")
	private Time endTime;

	/**
	 * 定时任务状态  0 开 1 关
	 */
	@ApiModelProperty("定时任务状态")
	private Integer timedTaskStatus;

}
